#include <buola/utility/udelegate.h>
#include <buola/io.h>

using namespace buola;

class DDelegate : public UDelegate<DDelegate>
{
};

int main(int,char**)
{
    DDelegate *lTheDelegate=new DDelegate;
    
    delegate_ptr<DDelegate> a=lTheDelegate;
    delegate_ptr<DDelegate> b=lTheDelegate;
    
    msg_info() << (void*)a.get() << " " << (void*)b.get() << "\n";
    
    delete lTheDelegate;

    msg_info() << (void*)a.get() << " " << (void*)b.get() << "\n";
}
